log("请确保开启无障碍服务哦~");
auto.waitFor();
home();

console.setGlobalLogConfig({
    file: "/sdcard/1.log",
});

app.launchApp("Calculator");
text("+").waitFor();
log("成功进入计算器界面.");
click("1");
click("+");
click("1");
click("=");

var result = id("com.android.calculator2:id/result").findOnce();
if (result.text() == "2") {
    console.info("成功");
} else {
    console.error("失败");
}
